package cq.com.cn.service;

import cq.com.cn.dao.UserDao;
import cq.com.cn.model.UserModel;

public class UserService {
    public UserModel queryUserByEmail(String email) {
        UserDao uerDao=new UserDao();
        return uerDao.queryUserByEmail(email);
    }

    public void saveUser(UserModel user){
        UserDao uerDao=new UserDao();
        uerDao.insertUser(user);
    }

    public UserModel userLogin(String longinName,String pwd){
        UserDao uerDao=new UserDao();
       return  uerDao.findUser(longinName,pwd);
    }
}
